package com.xuxiao.springbootexp01.controllers;

import com.xuxiao.springbootexp01.Entity.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Date;

@Controller
public class GsonController {
    @ResponseBody
    @RequestMapping(value = "/gson")
    public static User gsonTest(){
        return new User("xuxiao",21,new Date());
    }
}
